package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.MallHotItem;

import java.util.*;
public class MallHotItemExample extends SgExample<MallHotItemExample.Criteria> {
    public static final Class<MallHotItem> beanClass = MallHotItem.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn imgUrl;
    public static EntityColumn itemId;
    public static EntityColumn createTime;
    public static EntityColumn hotId;
    public static EntityColumn showWeight;
    public static EntityColumn cid;
    public static EntityColumn status;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        imgUrl = listMap.get("imgUrl");
        itemId = listMap.get("itemId");
        createTime = listMap.get("createTime");
        hotId = listMap.get("hotId");
        showWeight = listMap.get("showWeight");
        cid = listMap.get("cid");
        status = listMap.get("status");
        }

    public MallHotItemExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected MallHotItemExample.Criteria createCriteriaInternal() {
        return new MallHotItemExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public MallHotItemExample.Criteria andImgUrlIsNull() {
            return isNull(imgUrl);
        }

        public MallHotItemExample.Criteria andImgUrlIsNotNull() {
            return isNotNull(imgUrl);
        }

        public MallHotItemExample.Criteria andImgUrlEqualTo(String value) {
            return equalTo(imgUrl, value);
        }

        public MallHotItemExample.Criteria andImgUrlNotEqualTo(String value) {
            return notEqualTo(imgUrl, value);
        }

        public MallHotItemExample.Criteria andImgUrlGreaterThan(String value) {
            return greaterThan(imgUrl, value);
        }

        public MallHotItemExample.Criteria andImgUrlGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(imgUrl, value);
        }

        public MallHotItemExample.Criteria andImgUrlLessThan(String value) {
            return lessThan(imgUrl, value);
        }

        public MallHotItemExample.Criteria andImgUrlLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(imgUrl, value);
        }

        public MallHotItemExample.Criteria andImgUrlLike(String value) {
            return like(imgUrl, value);
        }

        public MallHotItemExample.Criteria andImgUrlNotLike(String value) {
            return notLike(imgUrl, value);
        }

        public MallHotItemExample.Criteria andImgUrlIn(List<String> values) {
            return in(imgUrl, values);
        }

        public MallHotItemExample.Criteria andImgUrlNotIn(List<String> values) {
            return notIn(imgUrl, values);
        }

        public MallHotItemExample.Criteria andImgUrlBetween(String value1, String value2) {
            return between(imgUrl, value1, value2);
        }

        public MallHotItemExample.Criteria andImgUrlNotBetween(String value1, String value2) {
            return notBetween(imgUrl, value1, value2);
        }
        public MallHotItemExample.Criteria andItemIdIsNull() {
            return isNull(itemId);
        }

        public MallHotItemExample.Criteria andItemIdIsNotNull() {
            return isNotNull(itemId);
        }

        public MallHotItemExample.Criteria andItemIdEqualTo(Long value) {
            return equalTo(itemId, value);
        }

        public MallHotItemExample.Criteria andItemIdNotEqualTo(Long value) {
            return notEqualTo(itemId, value);
        }

        public MallHotItemExample.Criteria andItemIdGreaterThan(Long value) {
            return greaterThan(itemId, value);
        }

        public MallHotItemExample.Criteria andItemIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(itemId, value);
        }

        public MallHotItemExample.Criteria andItemIdLessThan(Long value) {
            return lessThan(itemId, value);
        }

        public MallHotItemExample.Criteria andItemIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(itemId, value);
        }

        public MallHotItemExample.Criteria andItemIdIn(List<Long> values) {
            return in(itemId, values);
        }

        public MallHotItemExample.Criteria andItemIdNotIn(List<Long> values) {
            return notIn(itemId, values);
        }

        public MallHotItemExample.Criteria andItemIdBetween(Long value1, Long value2) {
            return between(itemId, value1, value2);
        }

        public MallHotItemExample.Criteria andItemIdNotBetween(Long value1, Long value2) {
            return notBetween(itemId, value1, value2);
        }
        public MallHotItemExample.Criteria andCreateTimeIsNull() {
            return isNull(createTime);
        }

        public MallHotItemExample.Criteria andCreateTimeIsNotNull() {
            return isNotNull(createTime);
        }

        public MallHotItemExample.Criteria andCreateTimeEqualTo(Date value) {
            return equalTo(createTime, value);
        }

        public MallHotItemExample.Criteria andCreateTimeNotEqualTo(Date value) {
            return notEqualTo(createTime, value);
        }

        public MallHotItemExample.Criteria andCreateTimeGreaterThan(Date value) {
            return greaterThan(createTime, value);
        }

        public MallHotItemExample.Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            return greaterThanOrEqualTo(createTime, value);
        }

        public MallHotItemExample.Criteria andCreateTimeLessThan(Date value) {
            return lessThan(createTime, value);
        }

        public MallHotItemExample.Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            return lessThanOrEqualTo(createTime, value);
        }

        public MallHotItemExample.Criteria andCreateTimeIn(List<Date> values) {
            return in(createTime, values);
        }

        public MallHotItemExample.Criteria andCreateTimeNotIn(List<Date> values) {
            return notIn(createTime, values);
        }

        public MallHotItemExample.Criteria andCreateTimeBetween(Date value1, Date value2) {
            return between(createTime, value1, value2);
        }

        public MallHotItemExample.Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            return notBetween(createTime, value1, value2);
        }
        public MallHotItemExample.Criteria andHotIdIsNull() {
            return isNull(hotId);
        }

        public MallHotItemExample.Criteria andHotIdIsNotNull() {
            return isNotNull(hotId);
        }

        public MallHotItemExample.Criteria andHotIdEqualTo(Long value) {
            return equalTo(hotId, value);
        }

        public MallHotItemExample.Criteria andHotIdNotEqualTo(Long value) {
            return notEqualTo(hotId, value);
        }

        public MallHotItemExample.Criteria andHotIdGreaterThan(Long value) {
            return greaterThan(hotId, value);
        }

        public MallHotItemExample.Criteria andHotIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(hotId, value);
        }

        public MallHotItemExample.Criteria andHotIdLessThan(Long value) {
            return lessThan(hotId, value);
        }

        public MallHotItemExample.Criteria andHotIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(hotId, value);
        }

        public MallHotItemExample.Criteria andHotIdIn(List<Long> values) {
            return in(hotId, values);
        }

        public MallHotItemExample.Criteria andHotIdNotIn(List<Long> values) {
            return notIn(hotId, values);
        }

        public MallHotItemExample.Criteria andHotIdBetween(Long value1, Long value2) {
            return between(hotId, value1, value2);
        }

        public MallHotItemExample.Criteria andHotIdNotBetween(Long value1, Long value2) {
            return notBetween(hotId, value1, value2);
        }
        public MallHotItemExample.Criteria andShowWeightIsNull() {
            return isNull(showWeight);
        }

        public MallHotItemExample.Criteria andShowWeightIsNotNull() {
            return isNotNull(showWeight);
        }

        public MallHotItemExample.Criteria andShowWeightEqualTo(Integer value) {
            return equalTo(showWeight, value);
        }

        public MallHotItemExample.Criteria andShowWeightNotEqualTo(Integer value) {
            return notEqualTo(showWeight, value);
        }

        public MallHotItemExample.Criteria andShowWeightGreaterThan(Integer value) {
            return greaterThan(showWeight, value);
        }

        public MallHotItemExample.Criteria andShowWeightGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(showWeight, value);
        }

        public MallHotItemExample.Criteria andShowWeightLessThan(Integer value) {
            return lessThan(showWeight, value);
        }

        public MallHotItemExample.Criteria andShowWeightLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(showWeight, value);
        }

        public MallHotItemExample.Criteria andShowWeightIn(List<Integer> values) {
            return in(showWeight, values);
        }

        public MallHotItemExample.Criteria andShowWeightNotIn(List<Integer> values) {
            return notIn(showWeight, values);
        }

        public MallHotItemExample.Criteria andShowWeightBetween(Integer value1, Integer value2) {
            return between(showWeight, value1, value2);
        }

        public MallHotItemExample.Criteria andShowWeightNotBetween(Integer value1, Integer value2) {
            return notBetween(showWeight, value1, value2);
        }
        public MallHotItemExample.Criteria andCidIsNull() {
            return isNull(cid);
        }

        public MallHotItemExample.Criteria andCidIsNotNull() {
            return isNotNull(cid);
        }

        public MallHotItemExample.Criteria andCidEqualTo(Long value) {
            return equalTo(cid, value);
        }

        public MallHotItemExample.Criteria andCidNotEqualTo(Long value) {
            return notEqualTo(cid, value);
        }

        public MallHotItemExample.Criteria andCidGreaterThan(Long value) {
            return greaterThan(cid, value);
        }

        public MallHotItemExample.Criteria andCidGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(cid, value);
        }

        public MallHotItemExample.Criteria andCidLessThan(Long value) {
            return lessThan(cid, value);
        }

        public MallHotItemExample.Criteria andCidLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(cid, value);
        }

        public MallHotItemExample.Criteria andCidIn(List<Long> values) {
            return in(cid, values);
        }

        public MallHotItemExample.Criteria andCidNotIn(List<Long> values) {
            return notIn(cid, values);
        }

        public MallHotItemExample.Criteria andCidBetween(Long value1, Long value2) {
            return between(cid, value1, value2);
        }

        public MallHotItemExample.Criteria andCidNotBetween(Long value1, Long value2) {
            return notBetween(cid, value1, value2);
        }
        public MallHotItemExample.Criteria andStatusIsNull() {
            return isNull(status);
        }

        public MallHotItemExample.Criteria andStatusIsNotNull() {
            return isNotNull(status);
        }

        public MallHotItemExample.Criteria andStatusEqualTo(Boolean value) {
            return equalTo(status, value);
        }

        public MallHotItemExample.Criteria andStatusNotEqualTo(Boolean value) {
            return notEqualTo(status, value);
        }

        public MallHotItemExample.Criteria andStatusGreaterThan(Boolean value) {
            return greaterThan(status, value);
        }

        public MallHotItemExample.Criteria andStatusGreaterThanOrEqualTo(Boolean value) {
            return greaterThanOrEqualTo(status, value);
        }

        public MallHotItemExample.Criteria andStatusLessThan(Boolean value) {
            return lessThan(status, value);
        }

        public MallHotItemExample.Criteria andStatusLessThanOrEqualTo(Boolean value) {
            return lessThanOrEqualTo(status, value);
        }

        public MallHotItemExample.Criteria andStatusIn(List<Boolean> values) {
            return in(status, values);
        }

        public MallHotItemExample.Criteria andStatusNotIn(List<Boolean> values) {
            return notIn(status, values);
        }

        public MallHotItemExample.Criteria andStatusBetween(Boolean value1, Boolean value2) {
            return between(status, value1, value2);
        }

        public MallHotItemExample.Criteria andStatusNotBetween(Boolean value1, Boolean value2) {
            return notBetween(status, value1, value2);
        }
    }
}